package com.hzy.cms.domain.bo;

import com.ruoyi.common.core.domain.TreeEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 中国地区业务对象 star_area
 *
 * @author zengxin
 * @date 2023-10-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AreaInfoBo extends TreeEntity<AreaInfoBo> {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 简称
     */
    @NotBlank(message = "简称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shortname;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 全称
     */
    @NotBlank(message = "全称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mergename;

    /**
     * 层级
     */
    @NotNull(message = "层级不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer level;

    /**
     * 拼音
     */
    @NotBlank(message = "拼音不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pinyin;

    /**
     * 长途区号
     */
    @NotBlank(message = "长途区号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 邮编
     */
    @NotBlank(message = "邮编不能为空", groups = { AddGroup.class, EditGroup.class })
    private String zip;

    /**
     * 首字母
     */
    @NotBlank(message = "首字母不能为空", groups = { AddGroup.class, EditGroup.class })
    private String first;

    /**
     * 经度
     */
    @NotBlank(message = "经度不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lng;

    /**
     * 纬度
     */
    @NotBlank(message = "纬度不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lat;


}
